﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;


namespace SusyGame_Model
{
    [Serializable]
    public class Obstacle
    {
        //Atributos
        private String name;
        private int damage;
        private int price;
        private char icon;
        private int type;
        private int tland;

        //Propiedades
        public int Tland
        {
            get { return tland; }
            set { tland = value; }
        }
      
        public String Name
        {
            get { return name; }
            set { name = value; }
        } 

        public int Damage
        {
            get { return damage; }
            set { damage = value; }
        }

        public int Price
        {
            get { return price; }
            set { price = value; }
        }

        public char Icon
        {
            get { return icon; }
            set { icon = value; }
        }
        
        public int Type
        {
            get { return type; }
            set { type = value; }
        }


        //Constructores
        public Obstacle()
        {
	    }

        public Obstacle(int type) 
        {
            if (type == 1)
            {
                //Le asignamos los valores a los atributos para cada obstaculo
                this.Name = "Obstaculo A";
                this.Damage = 25;
                this.Price = 25;
                this.Icon = 'A';
                this.Tland = 1;
            }
            else
            {
                if (type == 2)
                {
                    this.Name = "Obstaculo B";
                    this.Damage = 50;
                    this.Price = 75;
                    this.Icon = 'B';
                    this.Tland = 1;
                }
                else
                {
                    if (type == 3)
                    {
                        this.Name = "Obstaculo C";
                        this.Damage = 100;
                        this.Price = 150;
                        this.Icon = 'C';
                        this.Tland = 2;
                    }
                }
            }
            this.Type = type;
	    }
    }
}
